package com.fzkjjt.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-boot-docker
 * @description:
 * @author: FangZhen
 * @create: 2020-09-10 13:48
 **/
@RestController
@Slf4j
public class TestController {

    @GetMapping("/test")
    public String test() {
        System.out.println("这是控制台日志！");
        log.info("这是输出到文件的日志！");
        return "Hello World, docker!";
    }
}
